package com.pda.gongpin.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.pda.gongpin.R;
import com.pda.gongpin.bean.FullTrayInListBean;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;

import java.util.List;

public class FullTrayInListAdapter extends BaseAdapter<FullTrayInListBean> {
    public FullTrayInListAdapter(int layoutResId, @Nullable List<FullTrayInListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, FullTrayInListBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_no,item.getErpCode());
        helper.setText(R.id.tv_time,item.getCreateTime());
        helper.setText(R.id.tv_supplierName,"货主：    "+item.getOwnerCodeDesc());
        helper.setText(R.id.tv_entryTypeName,"往来单位："+item.getPartner());
        helper.setText(R.id.tv_user,"单据类型："+item.getTypeName());
        //helper.setText(R.id.tv_supplierName,"关联入库单："+item.getCrossDockingReferenceOrder());
        helper.setText(R.id.tv_status,item.getEntryStatusName());
    }
}
